<?php require_once('../Connections/locale.php'); ?>
<?php
mysql_select_db($database_locale, $locale);
$query_commissionarie = "SELECT id_commissionaria, nome, piva FROM commissionarie";
$commissionarie = mysql_query($query_commissionarie, $locale) or die(mysql_error());
$row_commissionarie = mysql_fetch_assoc($commissionarie);
$totalRows_commissionarie = mysql_num_rows($commissionarie);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="../style.css" rel="stylesheet" type="text/css">
</head>

<body>
<fieldset>
<legend>Elenco Commissionarie</legend>

<table border="1" id="datatable">
  <tr>
    <td>ID</td>
    <td>Commissionaria</td>
    <td>Part. IVA </td>
    <td><a href="inserimento_commissionaria.php"><img src="../images/page.gif" width="18" height="18" border="0"></a></td>
    <td></td>
  </tr>
  <?php do { ?>
  <tr>
    <td><?php echo $row_commissionarie['id_commissionaria']; ?></td>
    <td><?php echo $row_commissionarie['nome']; ?></td>
    <td><?php echo $row_commissionarie['piva']; ?></td>
    <td><a href="modifica_commissionaria.php?id_commissionaria=<?php echo $row_commissionarie['id_commissionaria']; ?>"><img src="../images/modifica.png" width="16" height="16" border="0"></a></td>
    <td><img src="../images/elimina.png" width="16" height="16"></td>

  </tr>
  <?php } while ($row_commissionarie = mysql_fetch_assoc($commissionarie)); ?>
</table>
</fieldset>
</body>
</html>
<?php
mysql_free_result($commissionarie);
?>
